package com.yy.wga.common.web.exception;

import com.yy.wga.common.core.enmus.ResponseCode;

/**
 * 1开头为用户权限
 * 2开头为工具异常
 * 用户权限异常码
 *
 * @author guochao
 * @date 2021/6/1
 */
public enum EOauthRespCode implements ResponseCode {
    /**
     * 身份失效,请重新登录
     */
    SESSION_ID_INVALID("10000", "身份失效,请重新登录"),
    UNAUTHORIZED("10001", "暂无访问权限"),
    CONFIRM_LOGOUT_IDENTITY("10002", "该账号目前为已注销状态，无法登录");

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应信息
     */
    private String describe;

    EOauthRespCode(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescribe() {
        return describe;
    }
}
